package com.drug.mapper;

import com.drug.domain.DrugInformation;
import com.drug.domain.Manufacturer;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 生产企业
 */
@Mapper
public interface ManufacturerMapper {
    int deleteByPrimaryKey(Integer mfId);

    int insert(Manufacturer record);

    int insertSelective(Manufacturer record);

    Manufacturer selectByPrimaryKey(Integer mfId);

    int updateByPrimaryKeySelective(Manufacturer record);

    int updateByPrimaryKey(Manufacturer record);

    String selectNameById(Integer id);

    /**
     * 查询所有的生产企业
     * @return
     */
    List<Manufacturer> selectAll();



    Integer selectIdByName(String mfName);
}